package com.wryyyyy.mapper;

import com.wryyyyy.entity.Dish;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wryyyyy.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wryyyyy
 * @since 2023-11-12
 */
public interface DishMapper extends BaseMapper<Dish> {

    List<Dish> getAllDish();

    List<Dish> getDishRecommend();

    Dish selectDishById(@Param("id") String id);

    List<Dish> selectByCondition(@Param("dish_name") String name, @Param("start") Integer start, @Param("size") Integer size);

    Integer countAll();

    Integer countByCondition(@Param("dish_name") String name);
}